#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define n 1
int is_same(char a, char b)
{
	if (a == b || a == b + 32 || a == b - 32)
	{
		return 1;
	}
	else
	{
		return 0;
	}
}
int is(char a[])
{
	char* cur = a;
	char* tail = a;
	while (*(tail + 1) != '\0')
	{
		tail++;
	}
	while (cur <= tail)
	{
		int b = is_same(*cur, *tail);
		if (b == 0)
		{
			return 0;
		}
		cur++;
		tail--;
	}
	return 1;
}
int main()
{
	char a[n][1000];
	int i = 0;
	for (i = 0;i < n;i++)
	{
		gets(a[i]);
	}
	for (i = 0;i < n;i++)
	{
		int b = is(a[i]);
		if (b == 1)
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}
	return 0;
}